//
//  Group.m
//  gpos_app
//
//  Created by 崔航飞 on 2018/8/22.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "Group.h"

@implementation Group
//获取验证码
+(NSDictionary *)parseSendCodeByDic:(NSData *)dic{
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}
//注册
+(NSDictionary *)parseRegisterByDic:(NSData *)dic{
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}

+(id)parseLoginByDic:(id)dic{
    /*
     Token：613573c9-b490-48a9-865f-35ce5c0d6baa
     UserId: 13
     nickName:  xxx
     Portrait: http://xxxx  头像地址
     Status：1
     */
    NSLog(@"%@-----",dic);
//    NSDictionary *d1=[NSDictionary new];
    NSMutableDictionary * d2 = [NSMutableDictionary new];
    if (dic==nil)
    {
        
        return nil;
    }else{
        
        if ([dic isKindOfClass:[NSNull class]])
        {
            return nil;
        }else {
            
            NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
            if ([[dataArr objectForKey:@"code"] integerValue] ==200)
            {

                [d2 setValue:[dataArr objectForKey:@"code"] forKey:@"code"];
                [d2 setValue:[dataArr objectForKey:@"data"] forKey:@"data"];
                [d2 setValue:[dataArr objectForKey:@"message"] forKey:@"message"];

                NSLog(@"%@",d2);
                
                return d2;
            }else{

                [d2 setValue:[dataArr objectForKey:@"message"] forKey:@"message"];
                return d2;
                
            }
            
        }
    
    }
}
//验证登录
+ (id)parseverifyLoginByDic:(id)dic {
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}
+(NSDictionary *)parseLogoutByDic:(id)dic{
    
    NSLog(@"%@",dic);
    if (dic ==nil)
    {
        return nil;
    }else{
    NSDictionary *dataDic=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
    
    return dataDic;
    }
}

+(NSDictionary *)parseForgetPasswordByDic:(id)dic{
    
    NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
    NSLog(@"---%@",dataArr);
    return dataArr;
}
+(NSDictionary *)parseVerSionByDic:(id)dic{
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataDic=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        return dataDic;
    }
    
}

+(NSDictionary *)parseTradePasswordByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseTotalBalanceByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseHomePageByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseIncomeByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
    
}

+(NSDictionary *)parseAdvertisementByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
    
}
+(NSDictionary *)parseTeamByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseGetUserMinerNumberByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseAllRankByDic:(id)dic {
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseTodayRankByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
    
}

+(NSDictionary *)parseGetAccountAddressByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseTransferAccountByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseGetUserMinerByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}
+(NSDictionary *)parsegetUserMinerDetailListByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseGetUserMinerDetailByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
    
}

+(NSDictionary *)parseBalanceByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseOpenByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parsePhaseByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseRankViewByDic:(id)dic{
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseAllIncomeByDic:(id)dic{
     if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
    
}
+(NSDictionary *)parseCampaignByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
    
    
}
+(NSDictionary *)parseBillByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }

    
}

+(NSDictionary *)parseOrderDetailByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }

}
+(NSDictionary *)parsePosInfoByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseTeamInfoByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseTransferAccountPosByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseLoninDLByDic:(id)dic {
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
//        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseDivertZZByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
   
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}

+(NSDictionary *)parseIdentityResultByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}

+(NSDictionary *)parseOTCLoninByDic:(id)dic;
{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseOTCDivertByDic:(id)dic
{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseGetBankCardByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseBindBankCardByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseGetBankInfoByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseViewHoldInfoByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseViewDetailListByDic:(id)dic{
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}
+(NSDictionary *)parseStorageAmountByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseViewIncomeOrderListByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
    
}
+(NSDictionary *)parseSalesCommissionByDic:(id)dic{
    
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}
+(NSDictionary *)parseSaleDetailByDic:(id)dic{
    if (dic ==nil)
    {
        return nil;
    }else{
        NSDictionary *dataArr=[NSJSONSerialization JSONObjectWithData:dic options:NSJSONReadingMutableContainers error:nil];
        
        //        NSLog(@"---%@",dataArr);
        return dataArr;
    }
}
@end
